import allure
from selenium.webdriver.common.by import By

from base.base_action import BaseAction
import time
import allure
import pytest
from base.base_driver import InitDriver


class HighPressure(BaseAction):
    untest_day = By.XPATH,"//table/tbody/tr[1]/td[10]/div"
    high_pressure = By.XPATH, "//tr[1]/td[3]/div/div/div[1]/span[1]/i[1]"

    @allure.step(title='获取未测量天数')
    def get_text_untestday(self):
        return self.get_text(self.untest_day)

    @allure.step(title='获取高血压数值')
    def get_text_high_pressure(self):
        return self.get_text(self.high_pressure)